#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021-6-2 20:17
# @Author  : ling
# @File    : Base.py
# @Software: PyCharm
# 这是一个基础类

from selenium import webdriver
from selenium.webdriver.common.by import By


class Test_Base():
    def setup_class(self):
        chrome_arg = webdriver.ChromeOptions()
        # 加入调试地址
        chrome_arg.debugger_address = '127.0.0.1:9222'
        # 实例化driver对象
        self.driver = webdriver.Chrome(options=chrome_arg)


    def test(self):
        cookie = self.driver.get_cookies()
        print(cookie)
        self.driver.find_element(By.CSS_SELECTOR, ".ww_indexImg_AddMember").click()

    def teardown_class(self):
        self.driver.quit()
